package com.zcxy.fast.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zcxy.fast.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 平台-字典值
 *
 * @author zcc
 * @email 860474958@qq.com
 * @date 2020-12-18 15:15:57
 */
@Data
@TableName(value = "sys_dict_item", autoResultMap = true)
@ApiModel(value = "SysDictItem", description = "平台-字典值")
public class SysDictItem extends BaseEntity {

    @TableId(type = IdType.UUID)
    @Length(max = 32, message = "id 超出最大长度：32")
    @ApiModelProperty(value = " 主键", required = false)
    private String id;

    @Length(max = 512, message = "remark 超出最大长度：512")
    @ApiModelProperty(value = " 备注", required = false)
    private String remark;

    @Length(max = 32, message = "dictId 超出最大长度：32")
    @ApiModelProperty(value = " 字典id", required = false)
    private String dictId;

    @Length(max = 100, message = "name 超出最大长度：100")
    @ApiModelProperty(value = " 显示内容", required = false)
    private String name;

    @Length(max = 32, message = "dictValue 超出最大长度：32")
    @ApiModelProperty(value = " 字典值", required = false)
    private String code;

    @ApiModelProperty(value = " ", required = false)
    private Integer sortNo;

    @Length(max = 255, message = "dictCode 超出最大长度：255")
    @ApiModelProperty(value = " 字典编码", required = false)
    private String dictCode;

    @Length(max = 20, message = "状态")
    @ApiModelProperty(value = " 状态", required = false)
    private String status;


}
